package com.cx.zhshopping.ui.binding_adapter;

import androidx.databinding.BindingAdapter;

import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.scwang.smartrefresh.layout.listener.OnRefreshLoadMoreListener;

public class SmartRefreshBindingAdapter {

    @BindingAdapter(value = "setRefreshListener",requireAll = false)
    public static void setRefreshListener(SmartRefreshLayout refreshLayout,OnRefreshLoadMoreListener listener){
        refreshLayout.setOnRefreshLoadMoreListener(listener);
    }
}
